package com.demo.webmagic.dto;

import java.util.Date;
import java.util.List;

import com.demo.common.constant.ConstantDtoFlight;
import com.demo.common.model.Flightinfo;
import com.demo.common.model.Flighttrends;

public class DtoFlightInfo implements java.io.Serializable {

	private static final long serialVersionUID = 2333539182383495368L;

	private int code; // 返回结果

	private String fno; // 航班编号

	private Date searchTime; // 查询时间

	private Flightinfo flightInfo; // 航班信息

	private List<Flighttrends> trendsList; // 航班详情

	private boolean isEnd; // 该航班是否已经结束流程

	private String message; // 消息

	public DtoFlightInfo() {
	}

	public DtoFlightInfo(Flightinfo flightInfo, List<Flighttrends> trendsList) {
		this.setCode(ConstantDtoFlight.code_success);
		this.setFno(flightInfo.getFno());
		this.setSearchTime(flightInfo.getUpdateTime());
		this.setMessage(ConstantDtoFlight.message_fno_success);
		this.flightInfo = flightInfo;
		this.trendsList = trendsList;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public Flightinfo getFlightInfo() {
		return flightInfo;
	}

	public void setFlightInfo(Flightinfo flightInfo) {
		this.flightInfo = flightInfo;
	}

	public List<Flighttrends> getTrendsList() {
		return trendsList;
	}

	public void setTrendsList(List<Flighttrends> trendsList) {
		this.trendsList = trendsList;
	}

	public String getFno() {
		return fno;
	}

	public void setFno(String fno) {
		this.fno = fno;
	}

	public Date getSearchTime() {
		return searchTime;
	}

	public void setSearchTime(Date searchTime) {
		this.searchTime = searchTime;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public boolean isEnd() {
		return isEnd;
	}

	public void setEnd(boolean isEnd) {
		this.isEnd = isEnd;
	}

}
